libxl_qmp: fix qmp_next to cope with multiple lines read in a single buffer
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 27 Jan 2012 17:58:20 +0000 (17:58 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 27 Jan 2012 17:58:20 +0000 (17:58 +0000)
commit0d655213015bd839f63f0d527e39318cf8ee713f
treeeea1f6e41f1e60c03452ede078512f4ab421ce25
parentade17521489197781e655b78f2e0d30eff5b4ab6
libxl_qmp: fix qmp_next to cope with multiple lines read in a single buffer

qmp_next doesn't handle multiple lines read together in a single
buffer correctly at the moment.  This patch fixes it.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_qmp.c